FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD litemall-admin-api-1.0.0.jar app.jar
#RUN bash -c 'touch /app.jar'

RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
EXPOSE 8766